package com.hzky.demo.service;

import com.hzky.demo.dao.StudentDao;
import com.hzky.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by admin on 2017/6/8.
 */
@Service
public class StudentService {
    @Autowired
    StudentDao studentDao;

    public Student getStudentById(Integer id)
    {
        return studentDao.findOne(id);
    }

}
